package com.leyou.item.pojo;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 库存信息实体类，拆分 SKU，记录商品库存信息
 */
@Data
@Table(name = "tb_stock")
public class Stock {
    @Id
    private Long skuId;
    private Integer seckillStock;       // 秒杀可用库存
    private Integer seckillTotal;       // 已秒杀数量
    private Integer stock;              // 正常库存
}